reflect its purpose.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
printk("STUB: " __FILE__ ": %s: not implemented\n", __FUNCTION__);
}
-void machine_shutdown(xen_kexec_image_t *image)
+void machine_reboot_kexec(xen_kexec_image_t *image)
{
printk("STUB: " __FILE__ ": %s: not implemented\n", __FUNCTION__);
}
printk("STUB: " __FILE__ ": %s: not implemented\n", __FUNCTION__);
}
-void machine_shutdown(xen_kexec_image_t *image)
+void machine_reboot_kexec(xen_kexec_image_t *image)
{
printk("STUB: " __FILE__ ": %s: not implemented\n", __FUNCTION__);
}
{
}
-static void __machine_shutdown(void *data)
+static void __machine_reboot_kexec(void *data)
{
xen_kexec_image_t *image = (xen_kexec_image_t *)data;
machine_kexec(image);
}
-void machine_shutdown(xen_kexec_image_t *image)
+void machine_reboot_kexec(xen_kexec_image_t *image)
{
int reboot_cpu_id;
cpumask_t reboot_cpu;
{
cpus_clear(reboot_cpu);
cpu_set(reboot_cpu_id, reboot_cpu);
- on_selected_cpus(reboot_cpu, __machine_shutdown, image, 1, 0);
+ on_selected_cpus(reboot_cpu, __machine_reboot_kexec, image, 1, 0);
for (;;)
; /* nothing */
}
else
{
- __machine_shutdown(image);
+ __machine_reboot_kexec(image);
}
BUG();
}
case KEXEC_TYPE_DEFAULT:
image = &kexec_image[base + pos];
one_cpu_only();
- machine_shutdown(image); /* Does not return */
+ machine_reboot_kexec(image); /* Does not return */
break;
case KEXEC_TYPE_CRASH:
machine_crash_kexec(); /* Does not return */
unsigned long start;
} xen_kexec_reserve_t;
+extern xen_kexec_reserve_t kexec_crash_area;
+
/* We have space for 4 images to support atomic update
* of images. This is important for CRASH images since
* a panic can happen at any time...
int machine_kexec_load(int type, int slot, xen_kexec_image_t *image);
void machine_kexec_unload(int type, int slot, xen_kexec_image_t *image);
void machine_kexec_reserved(xen_kexec_reserve_t *reservation);
-void machine_shutdown(xen_kexec_image_t *image);
+void machine_reboot_kexec(xen_kexec_image_t *image);
void machine_crash_kexec(void);
void machine_crash_save_cpu(void);
crash_xen_info_t *machine_crash_save_info(void);